package com.gengzp.common.model.message.resp;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import com.gengzp.common.enums.YesNoEnum;
import com.gengzp.common.model.base.resp.GenericResp;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @ClassName PageMqMessageResp
 * @Description 分页查询消息返回实体
 * @Author gengzp
 * @Date 2025/6/2 20:45
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "分页查询消息返回实体")
public class PageMqMessageResp extends GenericResp {

    @Serial
    private static final long serialVersionUID = -3318459185297614533L;

    /**
     * 关联主题 topic 名称
     */
    @ApiModelProperty(value = "关联主题 topic 名称")
    private String relationTopicName;

    /**
     * 消息 key
     */
    @ApiModelProperty(value = "消息 key")
    private String messageKey;

    /**
     * 消息标签
     */
    @ApiModelProperty(value = "消息标签")
    private String messageTag;

    /**
     * 是否被消费过标识
     */
    @ApiModelProperty(value = "是否被消费过标识", enumClass = YesNoEnum.class)
    private Integer isConsumed;

    /**
     * 是否被消费过枚举值
     */
    @ApiModelProperty(value = "是否被消费过枚举值", enumClass = YesNoEnum.class)
    private String isConsumedValue;

}
